package com.longnows.appserver.service.impl;

import com.longnows.appserver.model.User;
import com.longnows.appserver.repository.UserRespository;
import com.longnows.appserver.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserRespository userRepository;

    public User getUserById(Long id) {
        return userRepository.findFirstById(id);
    }

}
